package com.zby.lease.web.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zby.lease.model.pojo.ApartmentInfo;
import com.zby.lease.model.pojo.CityInfo;
import com.zby.lease.model.pojo.DistrictInfo;
import com.zby.lease.model.pojo.ProvinceInfo;
import com.zby.lease.web.admin.vo.ProvinceVO;
import com.zby.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.zby.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.zby.lease.web.admin.vo.apartment.ApartmentSubmitVo;

import java.util.List;

/**
* @author liubo
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.atguigu.lease.model.ApartmentInfo
*/
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {

    void saveOrUpdateApartment(ApartmentSubmitVo apartmentSubmitVo);

    IPage<ApartmentItemVo> pageApartmentItemByQuery(IPage<ApartmentItemVo> page, ApartmentQueryVo queryVo);

    List<ProvinceInfo> selectAllProvince();

    List<ProvinceVO> selectProvinceCityCounty();

    List<CityInfo> selectAllCity();

    List<DistrictInfo> selectAllDistrict();
}




